package com.baidu.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * 邀请码
 * @author iicm
 * 2016-1-19 11:12
 */
public class Invite extends Model<Invite>{
	
	private static final long serialVersionUID = 282908528936842633L;
	public static final Invite dao = new Invite();
	
	/**
	 * 根据邀请码查询邀请实体
	 * @param code
	 * @return
	 */
	public Invite queryByCode(String code) {
		return Invite.dao.findFirst("select * from sys_invite where code=?", code);
	}
	
}
